-
Notifications
You must be signed in to change notification settings - Fork 286
Revert tinygo reflect.SliceHeader specialization #2210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Drafting while waiting for the TinyGo release, to update failed integration tests. |
We are in process of releasing v0.32 so this PR should be prepared, please. |
Thanks for the heads up. I think this is mostly ready, I just need to update CI to download the v0.32 binaries, and run tests. |
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
Linux binaries still missing from here, will try again. |
@deadprogram it seems TinyGo v0.32 lost the ability to build |
@@ -84,6 +84,7 @@ jobs: | |||
|
|||
- name: Build TinyGo examples | |||
run: make build.examples.tinygo | |||
if: matrix.go-version != '1.20' # fails with TinyGo v0.32.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idk how we feel about skipping building tests with Go 1.20 + TinyGo v0.32.0, as that seems to be an unsupported combination.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah looks like a bug in TinyGo that -target=wasi is now trying to use GOOS=wasip1, which is not existent in Go 1.20, for source resolution vs previously it didn't use wasip1 target internally (I remember it used arm target virtually). I think anyway this is harmless so I will go ahead and merge. cc @deadprogram my guess is that the latest TinyGo breaks wasi builds for all Go versions <= 1.20.
In light of tinygo-org/tinygo#4156, we need to revert #2161.
Also use
unsafe.Add
where feasible, and remove TODOs to useunsafe.Slice
where doing so would raise ago vet
warning about misuse ofunsafe.Pointer
.